package com.cn.bopu.common.upms.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:角色表
 * @author 史绍波
 * @since 2020-01-09
 */
@ApiModel(value ="角色表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @ApiModelProperty(value = "角色名称")
    @TableField("role_name")
    private String roleName;
    @ApiModelProperty(value = "有效状态：0无效，1有效")
    @TableField("state")
    private String state;
    @ApiModelProperty(value = "创建时间戳")
    @TableField("create_timestamp")
    private LocalDateTime createTimestamp;
    @ApiModelProperty(value = "更新时间戳")
    @TableField("update_timestamp")
    private LocalDateTime updateTimestamp;


    public static final String ID = "id";

    public static final String ROLE_NAME = "role_name";

    public static final String STATE = "state";

    public static final String CREATE_TIMESTAMP = "create_timestamp";

    public static final String UPDATE_TIMESTAMP = "update_timestamp";

}
